package com.lqfan.autoAnswerQ.model.subject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lqfan.autoAnswerQ.model.subjectChoiceType.SubjectChoiceType;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;


/**
 * <p>
 *     手动输入的题目类
 * </p>
 *
 * @author lqfan
 * @since 2020-04-04
 */
@Data
@TableName(value = "subject")
public class HandleImportModel implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;

    @TableField("content")
    private String content;

    @TableField("typeId")
    private int typeId;

    @TableField("questionId")
    private String questionId;

    /**
     * 0(未收藏),1(收藏)
     */
    @TableField("isCollect")
    private Long isCollect;

    private String answer;

    @TableField(exist = false)
    private ArrayList<SubjectChoiceType> choiceList;

    @TableField(exist = false)
    private long score;

    @TableField("userId")
    private String userId;
}
